exports.createPrepayId = function(req,res) {

    //获取body参数
    var bodyParams = req.routeInfo.bodyParams;
 
    var orderData = {};

    //构建任务流
    async.waterfall([

        //获取
        function(cb){

            R.SEND_HTTP(
                req,
                {
                    url    : "http://192.168.0.8/WCHATPAY/wpay.php",
                    method : 'POST',
                    data : {
                        "body" : bodyParams.body,
                        "total_fee" : bodyParams.total_fee,
                        "out_trade_no" : bodyParams.out_trade_no,
                        "open_id" : bodyParams.open_id,
                        "attach":bodyParams.attach
                    }
                },
                function (err, data) {

                    if(err){

                        return RES.response(res,false,data);

                    }
                    orderData = data;
                    cb();
                }
            );

        }

    ], function (err, result) {
        return RES.response(res, true,orderData);
    });

}